package com.ebai.product.management.repository.system;

import java.util.List;

import javax.persistence.Table;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import com.ebai.product.management.model.entity.Dict;

@Repository
@Table(name="dict")
@Qualifier("dictRepository")
public interface DictRepository extends CrudRepository<Dict, String>, JpaSpecificationExecutor<Dict>{

	public Dict save(Dict dict);

    public void deleteByPid(String pid);

    public void delete(Dict entity);

    public Dict findByPid(String pid);

    public List<Dict> findAll();

    Page<Dict> findAll(Specification<Dict> specification, Pageable pageable);
}
